package springinpractice.common.dao;

import java.util.List;

/*
 * @author	Willie Wheeler John Wheeler and Zeeshan Maqbool
 * Book		'Spring In Practice' [Book written by Willie Wheeler and John Wheeler]
 * 
 * Made changes to interface so that it works with Ch2 example
 */



public interface AbstractDao<T extends Object> {
	
	void save(T t);
	
	//T get(Long id);
	
	//T load(Long id);
	
	T findById(Long id);
	
	List<T> findAll();
	
	//List<T> getList();
	
	void update(T t);
	
	void delete(T t);
	
	//void deleteById(Long id);
	
	void deleteAll();
	
	long count();
}
